-- GENERATED SPELL FOR [Plague Spreader] --


function spell0_604(pUnit, Event) --@Wandering Plague,n/a--
pUnit:FullCastSpellOnTarget(3436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_604', 2000, 1)
end

function Sorts_604(pUnit, Event)
local choix_sorts_604 = math.random(0, 0)
if choix_sorts_604 == 0 then
pUnit:RegisterEvent('spell0_604', 1, 1)
end
end

function mob604_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_604', math.random(1500, 3000), 1)
end

function mob604_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob604_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob604_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(604, 1, 'mob604_Action')
RegisterUnitEvent(604, 2, 'mob604_Leave')
RegisterUnitEvent(604, 3, 'mob604_Kill')
RegisterUnitEvent(604, 4, 'mob604_Die')
